<script>
export default {
  name: "EmptyData",
  props: {
    text: {
      type: String,
      default: '暂无数据'
    },
    size: {
      type: Number,
      default:  300
    }
  }
}
</script>

<template>
  <div class="empty-data">
    <div>
      <img src="@/assets/aihuman/empty.png" alt="" :style="{width: size + 'px', height: size + 'px'}">
    </div>
    <div style="margin-top: 30px;">
      {{ text }}
    </div>
  </div>
</template>

<style scoped lang="scss">
.empty-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;

  img {
    width: 300px;
    height: 300px;
  }
}
</style>
